[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
Am 29.07.23 um 23:16 schrieb Hans Hagen: On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote: The setup for MyCode is not applied to \typeMyBuffer, and I don’t know how it could; something like \typeMyBuffer[MyCode] doesn’t work. These commands inherit from buffer, so \setupbuffer will work.

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
[MyCode] [option=tex, numbering=file] \definebuffer [MyBuffer] [category=MyCode] \setuptyping [MyBuffer] [option=TEX, numbering=file] % \setuptyping % [buffer] % [option=TEX, %numbering=file] \startMyBuffer \fakewords{10}{20} \stopMyBuffer \starttext \startMyCode

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Am 29.07.23 um 22:49 schrieb Max Chernoff: I'm on mobile now so I can't type out a complete solution, but I think that what you're looking for is in this file: https://github.com/gucci-on-fleek/unnamed-emoji/blob/master/documentation/unemoji-manual.mkxl It doesn't exactly do what you

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Max Chernoff
I'm on mobile now so I can't type out a complete solution, but I think that what you're looking for is in this file: https://github.com/gucci-on-fleek/unnamed-emoji/blob/master/documentation/unemoji-manual.mkxl It doesn't exactly do what you specifically asked for, but I think that it's

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Am 29.07.23 um 22:06 schrieb Bruce Horrocks: Your example seems to work: I see the \getbuffer[MyBuffer] command typed (not executed) with colour coding on the keyword and line numbered; then the block text fakewords from the visual module; then the \fakewords macro shown (again not executed)

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Am 29.07.23 um 22:06 schrieb Bruce Horrocks: Your example seems to work: I see the \getbuffer[MyBuffer] command typed (not executed) with colour coding on the keyword and line numbered; then the block text fakewords from the visual module; then the \fakewords macro shown (again not executed)

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Bruce Horrocks
"" > \usemodule[visual] > > \definetyping[MyCode] > > \setuptyping[MyCode][ > option=tex, > numbering=file, > ] > > \definebuffer[MyBuffer] > > \startMyBuffer > \fakewords{10}{20} > \stopMyBuffer > > \starttext > > \startMyCode &g

[NTG-context] combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Hi, I’d like to use a custom buffer ("MyBuffer") to use a custom typing style ("MyCode"). How does that work? """ \usemodule[visual] \definetyping[MyCode] \setuptyping[MyCode][ option=tex, numbering=file, ] \definebuffer[MyBuffer] \startMyBuff